package com.zjk.wrench.design.framework.tree;

import com.zjk.wrench.design.framework.tree.factory.DefaultStrategyFactory;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstractDemoSupport extends AbstractMultiThreadStrategyRouter<String, DefaultStrategyFactory.DynamicContext, String> {
    @Override
    protected void multiThread(String requestParameters, DefaultStrategyFactory.DynamicContext dynamicContext) {
        log.info("general-wrench multiThread requestParameters:{}", requestParameters);
    }

    @Override
    public StrategyHandler<String, DefaultStrategyFactory.DynamicContext, String> getStrategy(String requestParameters, DefaultStrategyFactory.DynamicContext dynamicContext) {
        return defaultStrategyHandler;
    }
}
